package thread.producer;

public class Main {
    public static void main(String[] args) {
        WareHouse house = new WareHouse();
        Producer p1 = new Producer(house);
        p1.setPriority(10);
        Consumer c1 = new Consumer(house);
        Consumer c2 = new Consumer(house);
        p1.start();
        c1.start();
        c2.start();



    }
}
